extends Button


onready var GRID = find_parent("GRID")
onready var STOP_THREAD = GRID.find_node("STOP_THREAD_BUTTON")

func _ready():
	connect("button_up",self,"on_click")

func on_click():
	if GRID.stop_worker == false:
		GRID.start_evolution(false)
		self.visible = false
		STOP_THREAD.visible = true
